package com.ky.serialport.utils;

import java.text.DecimalFormat;

public class FormatUtils {

    public static DecimalFormat df7;
    public static DecimalFormat df5;
    public static DecimalFormat df4;
    public static DecimalFormat df3;
    public static DecimalFormat df2;
    public static DecimalFormat df22;
    public static DecimalFormat df1;

    public static  void init(){
        df7 = new DecimalFormat("0.0000000");
        df5 = new DecimalFormat("0.00000");
        df4 = new DecimalFormat("0.0000");
        df3 = new DecimalFormat("0.000");
        df2 = new DecimalFormat("0.00");
        df22 = new DecimalFormat("00.00");
        df1 = new DecimalFormat("0.0");
    }

}
